package com.ruoyi.users.service;

import com.ruoyi.users.dao.StudyPlansContentsDao;
import com.ruoyi.users.domain.StudyPlansContents;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface StudyPlansContentsService {
    //注入dao
//    @Autowired
//    private MyNewContentDao repository;
    /**
     * 保存一个内容
     * @param studyPlansContents
     */
    public void saveContent(StudyPlansContents studyPlansContents);
    /**
     * 更新内容
     * @param studyPlansContents
     */
    public void updateContent(StudyPlansContents studyPlansContents);
    /**
     * 根据id删除内容
     * @param id
     */
    public void deleteContentById(String id);
    /**
     * 查询所有内容
     * @return
     */
    public List<StudyPlansContents> findContentList();
    /**
     * 根据id查询内容
     * @param id
     * @return
     */
    public StudyPlansContents findContentById(String id);
}

